import api from './request_api'

export const getwoHome = (id: any) => api.get(`/home/${id}`)

export const editHome = (user: any, id: any) => api.put(`/home/${id}`, user)

export const gethome = (user: any) => api.get(`/home/?page=${user.page}&limit=${user.limit}&keyword=${user.keyword}&sort=%2Bid`)

export const addHome = (user: any) => api.post(`/home`, user)
